<?php
namespace functions\attributes\components\LinkTree;

function pagePre($element)
{
	if (!$element->AttributeExists('page') || !$element->GetAttribute('page'))
	{
		$element->AddAttribute('page', 'main');
	}
}